package com.qd.flow.model.bill;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 审批业务
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("flow_bill")
public class FlowBill extends Model<FlowBill> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "bill_id", type = IdType.ASSIGN_ID)
    private String billId;
    /**
     * 流程编码
     */
    @TableField("process_code")
    private String processCode;
    /**
     * 流程名称
     */
    @TableField("process_name")
    private String processName;
    /**
     * 业务关联ID
     */
    @TableField("bid")
    private String bid;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
    /**
     * 完成时间
     */
    @TableField("finish_time")
    private LocalDateTime finishTime;
    /**
     * 任务名称
     */
    @TableField("task_name")
    private String taskName;
    /**
     * 业务状态:0进行中1已结束
     */
    @TableField("bill_state")
    private Integer billState;
    /**
     * 流程发起人
     */
    @TableField("process_user_name")
    private String processUserName;
    /**
     * 流程发起组织
     */
    @TableField("process_org_name")
    private String processOrgName;
    /**
     * 流程ID
     */
    @TableField("process_id")
    private String processId;
    /**
     * 操作类型
     */
    @TableField("operator_type")
    private String operatorType;
    /**
     * 流程发起人ID
     */
    @TableField("process_user_id")
    private String processUserId;
    /**
     * 流程发起组织ID
     */
    @TableField("process_org")
    private String processOrg;

    public void freeData() {
        this.billId = null;
        this.processCode = null;
        this.processName = null;
        this.bid = null;
        this.createTime = null;
        this.finishTime = null;
        this.taskName = null;
        this.billState = null;
        this.processUserName = null;
        this.processOrgName = null;
        this.processId = null;
        this.operatorType = null;
        this.processUserId = null;
        this.processOrg = null;
    }

}
